package org.example.system.model.form;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 订单表单对象
 */
@Getter
@Setter
@NoArgsConstructor
public class OrderForm implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Integer tenantId;

    /**
     * 微信用户唯一标识(外键)
     */

    private String openid;

    /**
     * 车辆ID(外键)
     */

    private Integer vehicleId;

    /**
     * 车型ID(外键)
     */
    private Integer modelId;

    /**
     * 网点(门店)ID(外键)
     */
    private Integer shopId;

    /**
     * 用车车型（如：大众捷达VS7）
     */
    private String modelName;

    /**
     * 取车网点
     */
    private String pickupLocation;

    /**
     * 还车网点
     */

    private String dropOffLocation;

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime pickupTime;

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDateTime dropOffTime;

    /**
     * 租车天数
     */
    private Integer totalDay;

    /**
     * 订单金额
     */

    private BigDecimal totalFee;

    /**
     * 订单备注
     */
    private String remark;


    /**
     * 支付方式(0:微信支付,1:支付宝支付)
     */
    //private Integer payType;

}
